package routers

import (
	"blog/controllers"

	"github.com/astaxie/beego"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	//FelleiController
	beego.Router("/fenlei", &controllers.FelleiController{})
	beego.Router("/fenlei/query", &controllers.FelleiController{}, "*:Query")
	beego.Router("/admin", &controllers.LoginController{})
	beego.Router("/topic", &controllers.ToPicController{})
	beego.AutoRouter(&controllers.ToPicController{})

	beego.Router("/update", &controllers.UpdateController{})
	beego.Router("/update/delete", &controllers.UpdateController{}, "*:Delete")
}
